package cn.coastalinfo.project.drools.domain.vo;

import cn.coastalinfo.framework.web.domain.BaseEntity;
import cn.coastalinfo.project.drools.enums.ConditionType;
import cn.coastalinfo.project.drools.enums.OPeratorType;
import lombok.Data;


/**
 * 规则条件视图对象
 *
 * @author hadge
 * @date 2024-06-08
 */
@Data
public class RuleConditionVo extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 规则id
     */
    private Long ruleId;

    /**
     * 上级id
     */
    private Long parentId;

    /**
     * 类型，and,or,normal
     */
    private ConditionType type;

    /**
     * 表达式左值类型，variable,input
     */
    private String leftType;

    /**
     * 表达式左值id
     */
    private Long leftId;

    /**
     * 左值缓存名
     */
    private String leftValue;

    private String leftLabel;

    /**
     * 操作符
     */
    private OPeratorType operator;

    /**
     * 表达式右值类型，variable,input
     */
    private String rightType;

    /**
     * 表达式右值id
     */
    private Long rightId;

    /**
     * 右值缓存名
     */
    private String rightValue;

    private String rightLabel;

    private String thenSet;
}
